package com.chenxingnet.dao;

import com.chenxingnet.dto.Publicity;
import com.chenxingnet.dto.PublicityExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PublicityMapper {
    int countByExample(PublicityExample example);

    int deleteByExample(PublicityExample example);

    int deleteByPrimaryKey(Integer pid);

    int insert(Publicity record);

    int insertSelective(Publicity record);

    List<Publicity> selectByExample(PublicityExample example);

    Publicity selectByPrimaryKey(Integer pid);

    int updateByExampleSelective(@Param("record") Publicity record, @Param("example") PublicityExample example);

    int updateByExample(@Param("record") Publicity record, @Param("example") PublicityExample example);

    int updateByPrimaryKeySelective(Publicity record);

    int updateByPrimaryKey(Publicity record);
    
    int insertSelectiveMy(Publicity record);

	List<Publicity> getAllMeetInfo();
	
	List<Publicity> getAllByDept(@Param("deptid") Integer deptid);
	
	Publicity selectByIdAndDept(@Param("pid") Integer pid,@Param("deptid") Integer deptid);
	
}